package cn.lili.modules.system.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.search.entity.dos.HotWordsHistory;
import cn.lili.modules.system.fallback.HotWordsHistoryFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author paulG
 * @since 2022/7/1
 **/
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.SYSTEM_SERVICE, contextId = "hot-words-history", fallback = HotWordsHistoryFallback.class)
public interface HotWordsHistoryClient {


    @PostMapping("/feign/system/hot-words-history/hotWordsHistories")
    boolean saveBatch(@RequestBody List<HotWordsHistory> hotWordsHistories);

}
